package com.ruoyi.admin.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.admin.mapper.IstOrderMapper;
import com.ruoyi.admin.domain.IstOrder;
import com.ruoyi.admin.service.IIstOrderService;
import com.ruoyi.common.core.text.Convert;

/**
 * 快定订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-25
 */
@Service
public class IstOrderServiceImpl implements IIstOrderService 
{
    @Autowired
    private IstOrderMapper istOrderMapper;

    /**
     * 查询快定订单
     * 
     * @param id 快定订单ID
     * @return 快定订单
     */
    @Override
    public IstOrder selectIstOrderById(Integer id)
    {
        return istOrderMapper.selectIstOrderById(id);
    }

    /**
     * 查询快定订单列表
     * 
     * @param istOrder 快定订单
     * @return 快定订单
     */
    @Override
    public List<IstOrder> selectIstOrderList(IstOrder istOrder)
    {
        return istOrderMapper.selectIstOrderList(istOrder);
    }

    /**
     * 新增快定订单
     * 
     * @param istOrder 快定订单
     * @return 结果
     */
    @Override
    public int insertIstOrder(IstOrder istOrder)
    {
        return istOrderMapper.insertIstOrder(istOrder);
    }

    /**
     * 修改快定订单
     * 
     * @param istOrder 快定订单
     * @return 结果
     */
    @Override
    public int updateIstOrder(IstOrder istOrder)
    {
        return istOrderMapper.updateIstOrder(istOrder);
    }

    /**
     * 删除快定订单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteIstOrderByIds(String ids)
    {
        return istOrderMapper.deleteIstOrderByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除快定订单信息
     * 
     * @param id 快定订单ID
     * @return 结果
     */
    @Override
    public int deleteIstOrderById(Integer id)
    {
        return istOrderMapper.deleteIstOrderById(id);
    }
}
